package com.wind.trademark.chart.vo;

import java.util.List;

public class Point {
	private float x;
	private float y;
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	public Point(float x, float y) {
		super();
		this.x = x;
		this.y = y;
	}
	public static float[][] translatePofloatList2twoDimensionalArray(List<Point> pointList){
		float[][] twoDimensionalArray=new float[pointList.size()][2];
		for (int i = 0; i < pointList.size(); i++) {
			twoDimensionalArray[i][0]=pointList.get(i).getX();
			twoDimensionalArray[i][1]=pointList.get(i).getY();
		}
		return twoDimensionalArray;
	}
	
}
